import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

//element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 导入所有的el-icon图标
import * as ElIconModules from '@element-plus/icons'

const app = createApp(App)
app.use(router)
app.use(ElementPlus)
//统一注册el-icon图标
for(let iconName in ElIconModules){
    app.component(iconName,ElIconModules[iconName])
}

app.mount('#app')
